/**
 * Copyright 2019 Inc.
 **/
package com.myz.rabbitmq.common.constants;

/**
 * 定义一些常量
 *
 * @author maoyz0621 on 19-4-14
 * @version: v1.0
 */
public class Constants {

    /**
     * 线程数
     */
    public static final int THREAD_COUNT = 5;

    /**
     * 处理间隔时间
     */
    public static final int INTERVAL_MILS = 0;

    /**
     * consumer失败后等待时间(mils)
     */
    public static final int ONE_SECOND = 1 * 1000;

    /**
     * 异常sleep时间(mils)
     */
    public static final int ONE_MINUTE = 1 * 60 * 1000;

    /**
     * MQ消息retry时间
     */
    public static final int RETRY_TIME_INTERVAL = ONE_MINUTE;

    /**
     * MQ消息有效时间
     */
    public static final int VALID_TIME = ONE_MINUTE;

}
